<? startScript('jquery, jquery.tools'); ?><script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script><? endScript(); ?>

<form action="" method="post" enctype="multipart/form-data">


	<p><input type="submit" name="editor_save" value="Сохранить" /></p>



	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes">
	
		<? $t = true; 
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">
	
				<p><label>Название<br />
					<input type="text" class="wide" name="title[<?=$l?>]" value="<?=hdat('object', 'data', $l, 'title')?>" /></label>
				</p>
	
				<p><label>Описание<br />
					<textarea name="descr[<?=$l?>]" cols="80" rows="25"><?=dat('object', 'data', $l, 'descr')?></textarea></label>
				</p>
	
			</div><? 
		
		$t = false; } ?>
	
	</div>


	<fieldset>
		<legend>=</legend>


		<p><label>Картинка (размер: <?=talkImageSize($s['w'], $s['h'])?>)<br />
			<input type="file" name="image" class="wide" /><br />
			<? if ($im = $DATA['object']['image']) { ?>			
				<img src="<?=$im['fn']?>" width="<?=$im['x']?>" height="<?=$im['y']?>" />
			<? } ?>
		</label></p>


	</fieldset>


	
	<p><input type="submit" name="editor_save" value="Сохранить" /></p>

</form>



